﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Layans.Data
{
    public class PagePost
    {

        public int PostId { get; set; }

        public User Name { get; set; }

        public Avatar Img { get; set; }

        public DateTime DateTime { get; set; }

        [Required]
        [StringLength(5000, MinimumLength = 5, ErrorMessage = "полето трябва да е минимум 5 и максимум 5000 символа")]
        public string content { get; set; }

        //public PagePostComment answeresss { get; set; }

        //public PagePostComment Comment { get; set; }

        public virtual PagePostVote PagePostVotes { get; set; }
    }
}
